package com.cn.por.biz.userRole.service.impl;

import java.util.List;
import com.cn.por.biz.userRole.entity.UserRole;
import org.springframework.beans.factory.annotation.Autowired;
import com.cn.por.biz.userRole.service.UserRoleService;
import com.cn.por.biz.userRole.dao.UserRoleDao;
import org.springframework.stereotype.Service;

@Service
public class UserRoleServiceImpl  implements UserRoleService  {
	
	@Autowired
	private UserRoleDao userRoleDao;
	
	public UserRole getById ( String id){
		return userRoleDao.getById(id);
	}
	

	public List<UserRole> getList ( UserRole userRole){
		return userRoleDao.getList(userRole);
	}
	

	public Integer updateById ( String id){
		return userRoleDao.updateById(id);
	}
	

	public Integer addOne ( UserRole userRole){
		return userRoleDao.addOne(userRole);
	}
	
}